import Weapon from "./Weapon";

/** 英雄属性 */
export default class Hero{
  name:string;
  agi?: number;
  str?: number;
  int?:number;
  atk?:number;
  def?:number;
  weapons?:Weapon[];
  tags?:string[];
  atten?:Hero;
 
 
  constructor(name:string){
    this.name=name;
  }

  public toString():string{
    let rs:string="";
    for(let k in this){
        rs=rs+","+k+":"+this[k]
    }
    return rs;
  }
  
}  